home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)TB
/
(A)TBX.ADF
/
WB2.0
/
CPU_mon
/
PM.doc
< prev
next >
Wrap
Text File
|
1992-03-19
|
3KB
|
86 lines
TABLE OF CONTENTS
NAME
PM v37.5 - Copyright (c) 1992 by MKSoft Development (Requires 2.0)
SYNOPSIS
PM - A CPU Load Monitor
FUNCTION
PM is a tool that monitors the Amiga system's CPU usage using some
hooks that are available in 2.04 EXEC. The program uses the high
resolution EClock timer to get real time values for the amount of
time the processor spends running tasks and the amount of time it
spends between tasks (in task switch and in sleep).
PM has full ReadArgs commandline input and it can also run from
the Workbench. (The tooltypes match the ReadArgs arguments)
PM can also be started by a Project Icon, in which case it will
use the tooltypes from the project icon.
PM has another feature and that is it can watch a specific task.
There is a TASK keyword which will make it watch the task in
question. This can be usefull in order to see exatly how much of
the system performance is spend on just that task.
When PM is not watching a specific task, it removes its own
processing from the total time such that any overhead it may cause
is not noticed. When PM is monitoring a specific task, PM's over-
head is not counted as part of the task's CPU usage.
There is also a PROP-gadget that controls the speed at which the
results are reported.
The two numbers at the bottom (when statistics are not turned off)
are the weighted average CPU usage and the instantanious CPU
usage.
When monitoring a single task, the window titlebar will display
the task name.
Example usage:
PM ; Use the default settings
PM RATE 15 ; Set the rate to 15/100 seconds.
PM TASK MyTask ; Watch "MyTask" (Uses FindTask(), not CLI
name)
PM NOSIZE ; Do not have the size/prop gadget.
PM will only let itself be installed once as a global monitor.
However, you can have PM monitor any number of tasks. PM will do
its best to not confuse the system on exit. It will beep the
display if it can not unhook itself from the system. When this
happens it means that PM was unable to remove the hook due to the
fact that something else has hooked into the system on top of PM.
INPUTS
(Command Line Arguments or Icon ToolTypes:)
LEFT/N Left edge for the window. Default=<none>
TOP/N Top edge for the window. Default=<none>
WIDTH/N Inner width of the window. Default=228
HEIGHT/N Inner height of the window. Default=40
RATE/K/N Rate of display in 1/100 sec Default=100 (1.00 sec)
TASK/K Task to monitor Default=<global CPU>
PUBSCREEN/K Public screen name Default=<default>
NOSIZE/S Switch off size/prop gadget
NOSTATS/S Turn off numerical statistics
RESULTS
A window that shows the CPU usage...
NOTES
The accuracy is so high that PM can even notice the task switch
overhead of the system. This "overhead" is considered part of the
CPU idle time (not CPU task time) and thus it may be hard to get a
full 100% utilization if task switching is still going on.
Special thanks to "talin" for the nice icon!
SEE ALSO
"A master's secrets are only as good as the
master's ability to explain them to others." - Michael Sinz
BUGS
None?